<?php include_once dirname(__FILE__).'/config.php'; ?>
<?php
$id = $_GET['id'];
$data = $dbObj->fetch_row( 'books' , $id );


?>
<script>
$('#date_id').Zebra_DatePicker({
	direction: 1 ,
	show_icon : false,
	months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],
	days : ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일']
});
</script>
<style>
#Create{}
#Create td{font-size:12px;text-align:left;padding-left:10px;height:30px;}
#Create td textarea{width:300px;height:100px;border:1px solid #666;}
#Create td input{border:1px solid #666;}
</style>
<table cellpadding="0"  cellspacing="0" border="0" id="Create">
	<colgroup>
		<col width="100">
	</colgroup>
	<tr>
		<td>작성자</td>
		<td><input type="text" name="user" value="<?php echo $data['user'] ?>"></td>
	</tr>
	<tr>
		<td>수입/지출</td>
		<td>
			<select name="blance">
				<option value="0" <?php echo $data['blance'] == 0 ? 'selected="selected"' : '' ?>>수입</option>
				<option value="1" <?php echo $data['blance'] == 1 ? 'selected="selected"' : '' ?>>지출</option>
			</select>
		</td>
	</tr>
	<tr>
		<td>일자</td>
		<td><input type="text" name="date_id" id="date_id" value="<?php echo date("Y-m-d",$data['date_id']) ?>" readonly></td>
	</tr>
	<tr>
		<td>금액</td>
		<td><input type="text" name="money" value="<?php echo $data['money'] ?>" onkeyup="is_numeric(this)"></td>
	</tr>
	<tr>
		<td>메모</td>
		<td>
			<textarea name="memo"><?php echo $data['memo'] ?></textarea>
		</td>
	</tr>
</table>